package com.sirui.spider.kuai.repository;

import com.sirui.spider.kuai.entity.Kuai;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.Collection;

/**
 * (Kuai)表数据库访问层
 *
 * @author linson
 * @since 2023/07/12
 */
@Repository
public interface KuaiRepository extends JpaRepository<Kuai, Integer>, JpaSpecificationExecutor<Kuai> {

    Kuai findByPageUrl(String pageUrl);

    long deleteByIdIn(Collection<Integer> ids);
}

